home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIExternalProtocolHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  96 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIExternalProtocolHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIExternalProtocolHandler_h__
  6. #define __gen_nsIExternalProtocolHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsIProtocolHandler_h__
  10. #include "nsIProtocolHandler.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIExternalProtocolHandler */
  19. #define NS_IEXTERNALPROTOCOLHANDLER_IID_STR "0e61f3b2-34d7-4c79-bfdc-4860bc7341b7"
  20.  
  21. #define NS_IEXTERNALPROTOCOLHANDLER_IID \
  22.   {0x0e61f3b2, 0x34d7, 0x4c79, \
  23.     { 0xbf, 0xdc, 0x48, 0x60, 0xbc, 0x73, 0x41, 0xb7 }}
  24.  
  25. class NS_NO_VTABLE nsIExternalProtocolHandler : public nsIProtocolHandler {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEXTERNALPROTOCOLHANDLER_IID)
  29.  
  30.   /**
  31.      * This method checks if the external handler exists for a given scheme.
  32.      *
  33.      * @param scheme external scheme.
  34.      * @return TRUE if the external handler exists for the input scheme, FALSE otherwise.
  35.      */
  36.   /* boolean externalAppExistsForScheme (in ACString scheme); */
  37.   NS_IMETHOD ExternalAppExistsForScheme(const nsACString & scheme, PRBool *_retval) = 0;
  38.  
  39. };
  40.  
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIEXTERNALPROTOCOLHANDLER \
  43.   NS_IMETHOD ExternalAppExistsForScheme(const nsACString & scheme, PRBool *_retval); 
  44.  
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIEXTERNALPROTOCOLHANDLER(_to) \
  47.   NS_IMETHOD ExternalAppExistsForScheme(const nsACString & scheme, PRBool *_retval) { return _to ExternalAppExistsForScheme(scheme, _retval); } 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  50. #define NS_FORWARD_SAFE_NSIEXTERNALPROTOCOLHANDLER(_to) \
  51.   NS_IMETHOD ExternalAppExistsForScheme(const nsACString & scheme, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExternalAppExistsForScheme(scheme, _retval); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsExternalProtocolHandler : public nsIExternalProtocolHandler
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSIEXTERNALPROTOCOLHANDLER
  62.  
  63.   nsExternalProtocolHandler();
  64.  
  65. private:
  66.   ~nsExternalProtocolHandler();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsExternalProtocolHandler, nsIExternalProtocolHandler)
  74.  
  75. nsExternalProtocolHandler::nsExternalProtocolHandler()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsExternalProtocolHandler::~nsExternalProtocolHandler()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* boolean externalAppExistsForScheme (in ACString scheme); */
  86. NS_IMETHODIMP nsExternalProtocolHandler::ExternalAppExistsForScheme(const nsACString & scheme, PRBool *_retval)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* End of implementation class template. */
  92. #endif
  93.  
  94.  
  95. #endif /* __gen_nsIExternalProtocolHandler_h__ */
  96.